package net.zdreamer.geracomium.ui.more;

import net.zdreamer.geracomium.ui.BaseActivity;
import net.zdreamer.geracomium.ui.MoreFragment;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.example.geracomium.R;

public class JoinUsActivity extends BaseActivity implements OnClickListener {
	private LinearLayout administrator, nurse, inance, Security, dean;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}
	@Override
	protected int getContentView() {
		// TODO Auto-generated method stub
		return R.layout.activity_joinus;
	}

	@Override
	protected void init() {
		// TODO Auto-generated method stub
		administrator = (LinearLayout) findViewById(R.id.administrator);
		nurse = (LinearLayout) findViewById(R.id.nurse);
		inance = (LinearLayout) findViewById(R.id.inance);
		Security = (LinearLayout) findViewById(R.id.Security);
		dean = (LinearLayout) findViewById(R.id.dean);
	}

	@Override
	protected void initViews() {
		// TODO Auto-generated method stub
		initTitle("招贤纳士",R.drawable.selector_title_back,0,true,false);
	}

	@Override
	protected void initListener() {
		// TODO Auto-generated method stub
		
		findViewById(R.id.back).setOnClickListener(this);
		
		administrator.setOnClickListener(this);
		nurse.setOnClickListener(this);
		inance.setOnClickListener(this);
		Security.setOnClickListener(this);
		dean.setOnClickListener(this);
	}


	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.back:
			JoinUsActivity.this.finish();
			break;
		case R.id.administrator:
			Intent admin = new Intent(JoinUsActivity.this,
					JobProfileActivity.class);
			startActivity(admin);
			JoinUsActivity.this.finish();
			break;
		case R.id.nurse:
			Intent intent_nurse = new Intent(JoinUsActivity.this,
					JobProfileActivity.class);
			startActivity(intent_nurse);
			JoinUsActivity.this.finish();
			break;
		case R.id.inance:
			Intent intent_inance = new Intent(JoinUsActivity.this,
					JobProfileActivity.class);
			startActivity(intent_inance);
			JoinUsActivity.this.finish();
			break;
		case R.id.Security:
			Intent intent_Security = new Intent(JoinUsActivity.this,
					JobProfileActivity.class);
			startActivity(intent_Security);
			JoinUsActivity.this.finish();
			break;
		case R.id.dean:
			Intent intent_dean = new Intent(JoinUsActivity.this,
					JobProfileActivity.class);
			startActivity(intent_dean);
			JoinUsActivity.this.finish();
			break;
		default:
			break;
		}
	}

	
}
